package com.zslin.business.dto;

import com.zslin.core.tools.RandomTools;
import lombok.Data;

/**
 * 订单统计DTO对象
 */
@Data
public class OrdersCountSpecsDto {

    private String proTitle;

    private Integer specsId;

    private String specsName;

    private Long amount;

    private String payDay;

    private Double backMoney=0d;

    private Double totalMoney=0d;

    private Double realMoney=0d;

    private Double commissionMoney=0d;

    private String randomKey;

    public OrdersCountSpecsDto() {
        this.randomKey = RandomTools.randomString(6);
    }

    public OrdersCountSpecsDto(String proTitle, Integer specsId, String specsName, Long amount, String payDay, Double backMoney, Double totalMoney, Double commissionMoney, Double realMoney) {
        this.proTitle = proTitle;
        this.specsId = specsId;
        this.specsName = specsName;
        this.amount = amount;
        this.payDay = payDay;
        this.backMoney = backMoney;
        this.totalMoney = totalMoney;
        this.commissionMoney = commissionMoney;
        this.realMoney = realMoney;
        this.randomKey = RandomTools.randomString(6);
    }
}
